package com.zy.project.system.online.repository;

import com.zy.core.data.jpa.support.repository.BaseRepository;
import com.zy.project.system.online.entity.UserOnline;
import com.zy.project.system.online.entity.base.BaseUserOnline;

import java.util.Date;
import java.util.List;

/**
 * Package: com.zy.project.system.online.repository
 * <p>
 * Description： TODO
 * <p>
 * Author: zhangyu
 * <p>
 * Date: Created in 2018-11-4 13:37
 * <p>
 * Company: mingtu
 * <p>
 * Copyright: Copyright (c) 2018
 * <p>
 * Version: 0.0.1
 * <p>
 * Modified By:
 */
public interface UserOnlineRepository extends BaseRepository<UserOnline,String> {

    /**
     * 根据sessionId删除会话信息
     * @param sessionId
     */
    void deleteBySessionId(String sessionId);

    List<UserOnline> findByExpired(Date date);

}
